Skip to content

Conversation

@FredPhilipy
Copy link
Contributor

reopen #4565 cc @mpaulucci

…iles.rs by:\n- Merging import statements from both branches\n- Keeping structured precompile definitions from main\n- Preserving BLS12-381 and BLAKE2F constants from both branches\n- Using cleaner is_precompile and execute_precompile implementations
@FredPhilipy FredPhilipy requested a review from a team as a code owner October 8, 2025 00:50
@mpaulucci mpaulucci requested a review from Copilot October 21, 2025 17:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reorganizes the precompiles.rs file by adding section headers and documentation comments to improve code readability and maintainability. The changes focus on better organization without altering functionality.

Key changes:

  • Added descriptive section headers using comment blocks to separate different constant groups
  • Moved imports to a more logical position at the top of the file
  • Added inline documentation for constants explaining their purpose and usage

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

}

#[expect(clippy::as_conversions, clippy::indexing_slicing)]
#[expect(clippy::as_conversions)]
Copy link

Copilot AI Oct 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of clippy::indexing_slicing from the expect attribute may cause clippy warnings if the function contains indexing operations. Verify that no indexing operations exist in execute_precompile, or add the lint suppression back if they do.

Suggested change
#[expect(clippy::as_conversions)]
#[expect(clippy::as_conversions, clippy::indexing_slicing)]

Copilot uses AI. Check for mistakes.
@mpaulucci mpaulucci marked this pull request as draft October 22, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants